import http from '../assets/js/api/reset';

export default {
  code(data) {
    return http.get(
      '/kkk/captcha-web/captcha/code/get',
      { timestamp: data },
      { isBlob: true, responseType: 'blob' }
    );
  },
  getPublicKey(data) {
    return http.post('/kkk/sys-web/user/getPublicKey', data);
  },
  deployType(data) {
    return http.post('/kkk/sys-web/sys/deployType', data);
  },
  login(data) {
    return http.post('/kkk/sys-web/user/login', data, {
      isLogin: true,
    });
  },
  queryList(data) {
    return http.post('/kkk/zhongdeng-web/queryLog/queryList', data);
  },
  queryHitList(data) {
    return http.post('/kkk/zhongdeng-web/aiAnalysisLog/queryHitList', data);
  },
  hitDetail(data) {
    return http.post('/kkk/zhongdeng-web/aiAnalysisLog/hitDetail', data);
  },
};
